<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
        
        <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
        
        {# CSS #}
        <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
        <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
        
        {% if favicon %}
            <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
        {% endif %}
    </head>
    <body>
        
        <div class="navigation_sidebar"></div>
        <div class="navigation_page">
            <ul>
                <li>
                    <a href="https://dokk.org/documentation">Documentation</a>
                </li>
                <li><a href="">{{ project }}</a></li>
                <li><a href="{{ pathto(master_doc) }}">{{ release }}</a></li>
            </ul>
        </div>
        
        <div class="sidebar">
            {% if logo %}
                <p class="logo">
                    <a href="{{ pathto(master_doc) }}">
                        <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="" />
                    </a>
                </p>
            {% endif %}
            
            <a href="{{ pathto(master_doc) }}" class="project_name">
                {{ project }}
            </a>
            
            <div class="release">
                {{ release }}
            </div>
            
            {% if theme_description %}
                <p class="description">
                    {{ theme_description }}
                </p>
            {% endif %}
            
            {# Templates defined in html_sidebars #}
            {% for a_template in sidebars %}
                {% include a_template %}
            {% endfor %}
            
            {# A callable yielding the global TOC tree containing the current
             # page, rendered as HTML bullet lists.
             # https://www.sphinx-doc.org/en/master/templating.html#toctree
             #}
            <div class="toc">
                {{ toctree (collapse=true, includehidden=true, maxdepth=2) }}
            </div>
            
            {# TODO: Add download links to PDF/EPUB/...
                <div class="download">Download:</div>
            #}
        </div>
        
        <div class="page">
            {% block body %}{% endblock %}
        </div>
    </body>
</html>
